<template>
  <el-dialog title="上传文件" :visible.sync="dialogVisible" :close-on-click-modal="false"
             :close-on-press-escape="false" :show-close="false" @close="$emit('update:visible',false)"
             top="100px" :append-to-body="true">
    <div class="progressbody" style="height: 70px;padding:20px 0;">
      <el-progress :stroke-width="10" :percentage="progressPercent"></el-progress>
    </div>
  </el-dialog>
</template>
<script>
  export default {
    name: 'Dialog',
    props: ['visible', 'progressPercent'],
    watch: {
      visible () {
        this.dialogVisible = this.visible
      }
    },
    data () {
      return {
        dialogVisible: this.visible
      }
    },

    created () {
    },
    methods: {

    }
  }
</script>
